package com.zsrt.java.day20161229.wrl.demo03;

public class Car02 {
	
	public static void main(String[] args) {
		Car02 byd = new Car02();
		byd.setBrand("法拉利");
		byd.setPrice(8000000.1);
		byd.setWeight(5000);
		System.out.println("品牌："+byd.getBrand());
		System.out.println("价格："+byd.getPrice());
		System.out.println("重量："+byd.getWeight());
	}
	
	/**
	 * 品牌
	 */
	private String brand;
	
	/**
	 * 价格
	 */
	private double price;
	
	/**
	 * 重量
	 */
	private double weight;

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}
}
